{% extends "marker_base.html" %}

{% block marker_data %}
    <form action="#" class="save_marker">
        <ul>
    {% if poi %}
            <li>
                <label for="title">title:</label><input type="text" name="title" id="title" value="{{poi.title}}"/>
            </li>
            <li>
                <label for="desc1">desc 1:</label><input type="text" name="desc1" id="desc1" value="{{poi.desc1}}"/>
            </li>
            <li>
                <label for="desc2">desc 2:</label><input type="text" name="desc2" id="desc2" value="{{poi.desc2}}"/>
            </li>
            <li>
                <label for="desc3">desc 3:</label><input type="text" name="desc3" id="desc3" value="{{poi.desc3}}"/>
            </li>
            <li>
                <label for="private">private:</label><input type="checkbox" {%if poi.private %}checked="true"{%endif%} name="private" id="private"/>
            </li>
    {%else%}
            <li>
                <label for="title">title:</label><input type="text" name="title" id="title" />
            </li>
            <li>
                <label for="desc1">desc 1:</label><input type="text" name="desc1" id="desc1"/>
            </li>
            <li>
                <label for="desc2">desc 2:</label><input type="text" name="desc2" id="desc2"/>
            </li>
            <li>
                <label for="desc3">desc 3:</label><input type="text" name="desc3" id="desc3"/>
            </li>
            <li>
                <label for="private">private:</label><input type="checkbox" {%if local_user.private %}checked="true"{%endif%} name="private" id="private"/>
            </li>
    {%endif%}
        </ul>
        <input type="submit" value="save"/>
    </form>
{% endblock %}

